package com.aaa.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    private  Integer id;
    private String username;
    private String password;
    // 返回json数据的时候将时间的毫秒数转化为yyyy-MM-dd的形式
    //@JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    public User(Integer id, String username, String password) {
        this.id = id;
        this.username = username;
        this.password = password;
    }
}
